import request from '@/plugins/request';
/**
 * 供应商-获取供应商列表
 */
export function supplierAgreementList(data) {
    return request({
        url: 'supplierAgreement/list',
        method: 'get',
        params: data
    })
}
/**
 *供应商-获取供应商信息
 */
export function getSupplierAgreement(id) {
    return request({
        url: `/supplierAgreement/findSystemSupplierAgreement/${id}`,
        method: 'get'
    })
}
/**
 *供应商-添加供应商信息
 */
export function addSupplierAgreement(data) {
    return request({
        url: 'supplierAgreement/createSystemSupplierAgreement',
        method: 'post',
        data
    })
}

/**
 *供应商-修改供应商信息
 */
export function putSupplierAgreement(id, data) {
    return request({
        url: `supplierAgreement/${id}`,
        method: 'put',
        data
    })
}

/**
 *供应商-修改供应商状态
 */
export function putSupplierAgreementStatus(id, status) {
    return request({
        url: `/supplierAgreement/set_status/${id}/${status}`,
        method: 'put',

    })
}